import {BaseModel} from "@/model/BaseModel";

export enum ResourceStatusEnum {
    InActive = 0,
    AWAIT = 1,
    PENDING = 2,
    COMPLETED = 3
}

export const ResourceStatusMap = [
    {label: '停用', value: ResourceStatusEnum.InActive, type: 'danger'},
    {label: '待转换', value: ResourceStatusEnum.AWAIT, type: 'default'},
    {label: '转换中', value: ResourceStatusEnum.PENDING, type: 'warning'},
    {label: '已完成', value: ResourceStatusEnum.COMPLETED, type: 'success'},
]

export  class ResourceModel extends BaseModel{
    /**
     * 主键
     */
   public resId: string;

    /**
     * 文件名称
     */

   public resName: string;

   // 1文件夹，2文件
   public resCategory: number;

    /**
     * 文件存储路径
     */

  public resPath: string;

  public fullPath: string;

  public fileName: string;

  public fileExt: string;

  public fileType: string;

  public fileSize: number;

  // 预览转换服务文件唯一标识
  public viewKey: string;

  public listImageUrl: string[];

    /**
     * 描述
     */

   public description: string;

    /**
     * 状态， ，0停用, 1待转换，2转换中，3转换完成
     */

   public resState: number;

   public auditStatus: number;

   public parentId: string;

   public parentIdPath: string;

    /**
     * 机构ID，备用字段
     */

   public customerId: string;

    /**
     * 创建时间
     */

    public createTime: Date;

    public createId: string;

    public createName: string;

    /**
     * 更新时间
     */

    public updateTime: Date;

    public updateId: string;

    public updateName: string;
}